Repository navigation
fix(linux): correct child webview packing on X11 and Wayland - #87
nesquena-hermes merged 2 commits into
Conversation
Exact-head review at
|
Linux gate now run on this exact head — CI green, and the geometry claim is verifiedMy last review said the source was clean and the only thing outstanding was that no Linux gate had ever run on this head (the PR workflow is I pushed Run 35682239787 — So the The discriminating geometry check I asked forI also said the smoke only proves the process stays alive, and asked for an assertion that the strip is ~38px with content immediately below rather than the 50/50 split. I pulled the run's screenshot artifact and measured it directly:
An independent visual read of the same PNG confirms it: a slim single-row tab strip ( That's the packing bug demonstrably fixed on a real Linux session, not just argued from source. What's still open — and it is not yours to closeTwo caveats, stated plainly so the record is accurate:
Neither is a change request against this branch. StatusSource clean at Worth folding the geometry assertion into Gate: reviewed at exact head |
|
Merged in Final gate at exact head
Two things I'm keeping honest on the record:
|
…ut() Comment-only follow-up to #87. No behaviour change.
The comment claimed window resizes do not re-fit webviews on Linux. Since hermes-webui#87 the GtkBox child packing (fixed 38px strip, expanding content) makes GTK re-allocate both children on resize; only the explicit set_position/set_size geometry calls are skipped. Comment-only; flagged as MARGINAL by the Codex gate on hermes-webui#87.
Fixes #83 by correcting Tauri 2.11's Linux
GtkBoxpacking for both child WebViews. The tab strip now has a fixed 38 px allocation, while only the active content WebView expands into the remaining height. Backend-specific coordinate compensation stays X11-only; the packing fix applies to both X11 and Wayland.This carries the first commit from #84 unchanged, preserving @albnavper's authorship. The follow-up removes the X11-only gate requested in maintainer review and updates the regression test and changelog to cover both Linux backends.
Verification
cargo fmt --checkcargo test— 24 passed; 1 explicitly ignored live-network sanity testcargo clippy --all-targets -- -D warnings -A dead-code— passed; the unmodified warning policy still reports six pre-existing Linux-only dead-code warnings outside this diffcargo build --releasey=47, h=38and the content WebView immediately after it aty=85, h=1083Review focus
Please verify that the direct
GtkBoxchild-packing override is an acceptable bounded workaround for the current Tauri/wry container behavior, and that keeping only coordinate conversion behind the X11 gate matches the intended backend split.